home *** CD-ROM | disk | FTP | other *** search
- if(strPassword != txtPassword)
- {
- _root.typingPassword = true;
- }
- else
- {
- typingCounter++;
- if(100 < typingCounter)
- {
- _root.typingPassword = false;
- typingCounter = 0;
- }
- }
- strPassword = txtPassword;
- strPassword = strPassword.toUpperCase();
- i = 0;
- while(_parent._parent.arrLevelCode.length >= i)
- {
- if(strPassword == _parent._parent.arrLevelCode[i])
- {
- _parent._parent.currentLevel = i + 1;
- passwordRGB = new Color(this);
- passwordRGB.setRGB(39423);
- break;
- }
- _parent._parent.currentLevel = 1;
- passwordRGB = new Color(this);
- passwordRGB.setRGB(0);
- i++;
- }
- txtPassword = strPassword;
- if(Key.isDown(13))
- {
- _parent.destination = "game";
- _parent.play();
- }
- gotoAndPlay(_currentframe - 1);
-